xen/arm: traps: Move MMIO emulation code in a separate helper
authorJulien Grall <julien.grall@arm.com>
Thu, 15 Sep 2016 11:28:22 +0000 (12:28 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 28 Sep 2016 01:13:48 +0000 (18:13 -0700)
commitc0f95cd6e9a62c346ff7b9e63baebdea43110a15
treecc48638dd94c6d9b9554d31794a06e91987406b5
parent5e504b74371410e81e88f433eb8f4cfc36119b28
xen/arm: traps: Move MMIO emulation code in a separate helper

Currently, a stage-2 fault translation will likely access an emulated
region. All the checks are pre-sanitity check for MMIO emulation.

A follow-up patch will handle a new case that could lead to a stage-2
translation. To improve the clarity of the code and the changes, the
current implementation is move in a separate helper.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/arm/traps.c